#include "enemy.h"

Enemy::Enemy(char* n /* = NO_ENEMY_NAME */):ObjCommon(n)
{
	initVals();
}

void Enemy::initVals()
{
	health = HealthVals(80,40);
	fight = FightVals(8,3);
	defence = DefenceVals(1,0);
}

void Enemy::update()
{
	initVals();
	float grow = (float)(level - 1);
	health += ((grow * HealthVals(1,1)).mul(8.0f,2.0f));
	fight += ((grow * FightVals(1,1)).mul(0.8f,0.6f));
	defence += ((grow * DefenceVals(1,1)).mul(0.3f,0.2f));
}